package cn.zhouyuxin.z99.controller;

import com.jfinal.core.Controller;

import cn.zhouyuxin.z99.model.User;

public class AdminController extends Controller {
	private User user=new User();
	public void index() {
		user=this.getSessionAttr("usersession");
		if(user!=null) {
			this.render("index.html");	
		}else {
			this.redirect("/admin/login");
		}
		
	}
}
